#ifndef MYTELEPHONY_H_
#define MYTELEPHONY_H_
#ifndef MYTELEPHONY_H
#define MYTELEPHONY_H

#include <e32base.h>
#include <Etel3rdParty.h>

class CMyTelephony : public CActive
{
public:
    static void GetIMEIL(TDes& aIMEI);
    static void GetIMSIL(TDes& aIMSI);
protected:
    void DoCancel();
    void RunL();

private:
    static CMyTelephony* NewLC();
    static CMyTelephony* NewL();
    ~CMyTelephony();
private:
    CMyTelephony();
    void ConstructL();
private:
    void GetPhoneId();
    void GetSubscriberId();
private:
    CTelephony* iTelephony;
    CTelephony::TCancellationRequest iRequest;

    // IMEI
    CTelephony::TPhoneIdV1 iPhoneIdV1;
    CTelephony::TPhoneIdV1Pckg iPhoneIdV1Pckg;

    // IMSI
    CTelephony::TSubscriberIdV1 iSubscriberId;
    CTelephony::TSubscriberIdV1Pckg iSubscriberIdPckg;
};

#endif // MYTELEPHONY_H
#endif /*MYTELEPHONY_H_*/
